package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcPatrolConfig;
import com.csun.cmny.provider.model.domain.DmcPatrolGreatConfig;
import com.csun.cmny.provider.model.dto.patrol.DmcPatrolTaskVo;
import com.csun.cmny.provider.model.dto.patrol.PatrolTaskDto;
import com.csun.cmny.provider.model.vo.patrol.PatrolGreatConfigVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcPatrolGreatConfigMapper extends Mapper<DmcPatrolGreatConfig> {

    /*
     * 查询巡更任务
     * */
    List<DmcPatrolTaskVo> patrolSelectTask(PatrolTaskDto patrolTaskDto);

    /**
     * 查询巡更棒的配置
     *
     * @param greatId   the great id
     *
     * @return  the patrol great config vo list.
     */
    List<PatrolGreatConfigVo> queryConfigByGreatId(Long greatId);

    Integer savePatrolTask(List<DmcPatrolGreatConfig> dmcPatrolGreatConfigs);

    void deleteByDeviceId(Long id);
}